package lt.f2g.domain;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import lt.f2g.domain.security.UserProfile;

@Entity
public class UserAccount extends BaseEntity {

    private String accountName;

    @OneToOne(cascade=CascadeType.REMOVE)
    @JoinColumn(name="USER_NAME", unique=true, nullable=false, updatable=false)
    private UserProfile userProfile;

    public UserProfile getUserProfile() {
        return userProfile;
    }
    public void setUserProfile(UserProfile userProfile) {
        this.userProfile = userProfile;
    }
    public String getAccountName() {
        return accountName;
    }
    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }
}